package com.lf.sys.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.lf.sys.model.SysMessageDrafts;

@Component
public interface MessageDraftsService {
	public int insert(SysMessageDrafts temp);

	public int delete(long id, long userId);

	public int update(SysMessageDrafts temp);

	public SysMessageDrafts get(long id, long userId);

	public List<SysMessageDrafts> list(long mailId, long userId);

	public List<SysMessageDrafts> list(SysMessageDrafts temp);

	public int insert(List<SysMessageDrafts> temp);

	public List<SysMessageDrafts> listByPage(long userId, long mailId, String colomn, String word, int offset,
			int limit, int... states);

	public int count(long userId, long mailId, String colomn, String word, int... states);

	public List<SysMessageDrafts> listByPage(long userId, String colomn, String word, int offset, int limit,
			int... states);

	public int count(long userId, String colomn, String word, int... states);

}
